#pragma once

#include "ui_Window.h"

#include <string>

namespace xs
{

//! Pole tekstowe.

class TextBox: public Window
{
public:
	//! Kasuje ostatni znak.
	void			backspace();

	//! Edytowalny tekst.
	std::wstring	text;

private:
	virtual void	on_type(wchar_t unicode);
	virtual void	accept(UIVisitor *visitor);
};

}